package Neko::Web::View::TT;

use strict;
use base 'Catalyst::View::TT';
use Path::Class;

my $root =  Neko::Web->config()->{root}->stringify;

__PACKAGE__->config(
    TEMPLATE_EXTENSION => '.tt',
    LOAD_TEMPLATES      => [
        Template::Provider->new( INCLUDE_PATH => $root ),
        Template::Provider->new( INCLUDE_PATH => Path::Class::dir( $root , 'common' )->stringify ),
    ],
    PREFIX_MAP => {
        default => 0,
        common  => 1,
    }
);

=head1 NAME

Neko::Web::View::TT - TT View for Neko::Web

=head1 DESCRIPTION

TT View for Neko::Web. 

=head1 AUTHOR

=head1 SEE ALSO

L<Neko::Web>

Tomohiro Teranishi

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

1;
